home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 33
/
Aminet 33 - October 1999.iso
/
Aminet
/
dev
/
c
/
MEMLib.lha
/
MEMLib
/
Developer
/
source.org
/
mwgetcwd.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1999-06-30
|
272 b
|
15 lines
#include "mempriv.h"
#undef getcwd
#include <dos.h>
char *MWGetCWD(char *path, int size, char *file, long line)
{
if(path == NULL)
{
path = MWAllocMem(size, 0, MWI_MALLOC, file, line);
if(path == NULL) return NULL;
}
return getcwd(path, size);
}